Optimal. Leaf size=111 \[ -\frac {2 b^2 B \sqrt {a+b x}}{\sqrt {x}}-\frac {2 b B (a+b x)^{3/2}}{3 x^{3/2}}-\frac {2 B (a+b x)^{5/2}}{5 x^{5/2}}-\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+2 b^{5/2} B \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 111, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {79, 49, 65, 223,
212} \begin {gather*} -\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+2 b^{5/2} B \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right )-\frac {2 b^2 B \sqrt {a+b x}}{\sqrt {x}}-\frac {2 B (a+b x)^{5/2}}{5 x^{5/2}}-\frac {2 b B (a+b x)^{3/2}}{3 x^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 49
Rule 65
Rule 79
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \frac {(a+b x)^{5/2} (A+B x)}{x^{9/2}} \, dx &=-\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+B \int \frac {(a+b x)^{5/2}}{x^{7/2}} \, dx\\ &=-\frac {2 B (a+b x)^{5/2}}{5 x^{5/2}}-\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+(b B) \int \frac {(a+b x)^{3/2}}{x^{5/2}} \, dx\\ &=-\frac {2 b B (a+b x)^{3/2}}{3 x^{3/2}}-\frac {2 B (a+b x)^{5/2}}{5 x^{5/2}}-\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+\left (b^2 B\right ) \int \frac {\sqrt {a+b x}}{x^{3/2}} \, dx\\ &=-\frac {2 b^2 B \sqrt {a+b x}}{\sqrt {x}}-\frac {2 b B (a+b x)^{3/2}}{3 x^{3/2}}-\frac {2 B (a+b x)^{5/2}}{5 x^{5/2}}-\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+\left (b^3 B\right ) \int \frac {1}{\sqrt {x} \sqrt {a+b x}} \, dx\\ &=-\frac {2 b^2 B \sqrt {a+b x}}{\sqrt {x}}-\frac {2 b B (a+b x)^{3/2}}{3 x^{3/2}}-\frac {2 B (a+b x)^{5/2}}{5 x^{5/2}}-\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+\left (2 b^3 B\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\sqrt {x}\right )\\ &=-\frac {2 b^2 B \sqrt {a+b x}}{\sqrt {x}}-\frac {2 b B (a+b x)^{3/2}}{3 x^{3/2}}-\frac {2 B (a+b x)^{5/2}}{5 x^{5/2}}-\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+\left (2 b^3 B\right ) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {a+b x}}\right )\\ &=-\frac {2 b^2 B \sqrt {a+b x}}{\sqrt {x}}-\frac {2 b B (a+b x)^{3/2}}{3 x^{3/2}}-\frac {2 B (a+b x)^{5/2}}{5 x^{5/2}}-\frac {2 A (a+b x)^{7/2}}{7 a x^{7/2}}+2 b^{5/2} B \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.28, size = 106, normalized size = 0.95 \begin {gather*} -\frac {2 \sqrt {a+b x} \left (15 A b^3 x^3+3 a^3 (5 A+7 B x)+a^2 b x (45 A+77 B x)+a b^2 x^2 (45 A+161 B x)\right )}{105 a x^{7/2}}-2 b^{5/2} B \log \left (-\sqrt {b} \sqrt {x}+\sqrt {a+b x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(197\) vs.
\(2(81)=162\).
time = 0.07, size = 198, normalized size = 1.78
method | result | size |
risch | \(-\frac {2 \sqrt {b x +a}\, \left (15 A \,b^{3} x^{3}+161 B a \,b^{2} x^{3}+45 a A \,b^{2} x^{2}+77 B \,a^{2} b \,x^{2}+45 a^{2} A b x +21 a^{3} B x +15 a^{3} A \right )}{105 x^{\frac {7}{2}} a}+\frac {b^{\frac {5}{2}} B \ln \left (\frac {\frac {a}{2}+b x}{\sqrt {b}}+\sqrt {b \,x^{2}+a x}\right ) \sqrt {\left (b x +a \right ) x}}{\sqrt {b x +a}\, \sqrt {x}}\) | \(126\) |
default | \(-\frac {\sqrt {b x +a}\, \left (-105 B \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a \,b^{3} x^{4}+30 A \,b^{\frac {7}{2}} \sqrt {\left (b x +a \right ) x}\, x^{3}+322 B \,b^{\frac {5}{2}} \sqrt {\left (b x +a \right ) x}\, a \,x^{3}+90 A \,b^{\frac {5}{2}} \sqrt {\left (b x +a \right ) x}\, a \,x^{2}+154 B \,b^{\frac {3}{2}} \sqrt {\left (b x +a \right ) x}\, a^{2} x^{2}+90 A \,a^{2} b^{\frac {3}{2}} x \sqrt {\left (b x +a \right ) x}+42 B \,a^{3} x \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+30 A \,a^{3} \sqrt {\left (b x +a \right ) x}\, \sqrt {b}\right )}{105 x^{\frac {7}{2}} a \sqrt {\left (b x +a \right ) x}\, \sqrt {b}}\) | \(198\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 258 vs.
\(2 (81) = 162\).
time = 0.30, size = 258, normalized size = 2.32 \begin {gather*} B b^{\frac {5}{2}} \log \left (2 \, b x + a + 2 \, \sqrt {b x^{2} + a x} \sqrt {b}\right ) - \frac {38 \, \sqrt {b x^{2} + a x} B b^{2}}{15 \, x} - \frac {2 \, \sqrt {b x^{2} + a x} A b^{3}}{7 \, a x} - \frac {7 \, \sqrt {b x^{2} + a x} B a b}{30 \, x^{2}} + \frac {\sqrt {b x^{2} + a x} A b^{2}}{7 \, x^{2}} + \frac {3 \, \sqrt {b x^{2} + a x} B a^{2}}{10 \, x^{3}} - \frac {{\left (b x^{2} + a x\right )}^{\frac {3}{2}} B b}{3 \, x^{3}} - \frac {3 \, \sqrt {b x^{2} + a x} A a b}{28 \, x^{3}} - \frac {{\left (b x^{2} + a x\right )}^{\frac {3}{2}} B a}{2 \, x^{4}} - \frac {15 \, \sqrt {b x^{2} + a x} A a^{2}}{28 \, x^{4}} - \frac {{\left (b x^{2} + a x\right )}^{\frac {5}{2}} B}{5 \, x^{5}} + \frac {5 \, {\left (b x^{2} + a x\right )}^{\frac {3}{2}} A a}{4 \, x^{5}} - \frac {{\left (b x^{2} + a x\right )}^{\frac {5}{2}} A}{x^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.62, size = 231, normalized size = 2.08 \begin {gather*} \left [\frac {105 \, B a b^{\frac {5}{2}} x^{4} \log \left (2 \, b x + 2 \, \sqrt {b x + a} \sqrt {b} \sqrt {x} + a\right ) - 2 \, {\left (15 \, A a^{3} + {\left (161 \, B a b^{2} + 15 \, A b^{3}\right )} x^{3} + {\left (77 \, B a^{2} b + 45 \, A a b^{2}\right )} x^{2} + 3 \, {\left (7 \, B a^{3} + 15 \, A a^{2} b\right )} x\right )} \sqrt {b x + a} \sqrt {x}}{105 \, a x^{4}}, -\frac {2 \, {\left (105 \, B a \sqrt {-b} b^{2} x^{4} \arctan \left (\frac {\sqrt {b x + a} \sqrt {-b}}{b \sqrt {x}}\right ) + {\left (15 \, A a^{3} + {\left (161 \, B a b^{2} + 15 \, A b^{3}\right )} x^{3} + {\left (77 \, B a^{2} b + 45 \, A a b^{2}\right )} x^{2} + 3 \, {\left (7 \, B a^{3} + 15 \, A a^{2} b\right )} x\right )} \sqrt {b x + a} \sqrt {x}\right )}}{105 \, a x^{4}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 68.44, size = 192, normalized size = 1.73 \begin {gather*} A \left (- \frac {2 a^{2} \sqrt {b} \sqrt {\frac {a}{b x} + 1}}{7 x^{3}} - \frac {6 a b^{\frac {3}{2}} \sqrt {\frac {a}{b x} + 1}}{7 x^{2}} - \frac {6 b^{\frac {5}{2}} \sqrt {\frac {a}{b x} + 1}}{7 x} - \frac {2 b^{\frac {7}{2}} \sqrt {\frac {a}{b x} + 1}}{7 a}\right ) + B \left (- \frac {2 a^{2} \sqrt {b} \sqrt {\frac {a}{b x} + 1}}{5 x^{2}} - \frac {22 a b^{\frac {3}{2}} \sqrt {\frac {a}{b x} + 1}}{15 x} - \frac {46 b^{\frac {5}{2}} \sqrt {\frac {a}{b x} + 1}}{15} - b^{\frac {5}{2}} \log {\left (\frac {a}{b x} \right )} + 2 b^{\frac {5}{2}} \log {\left (\sqrt {\frac {a}{b x} + 1} + 1 \right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (A+B\,x\right )\,{\left (a+b\,x\right )}^{5/2}}{x^{9/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________